package com.dao.impl;

import org.springframework.stereotype.Repository;

import com.dao.AccountDao;
import com.dao.jdbc.MyJdbcTemplate;

@Repository
public class AccountDaoImpl extends MyJdbcTemplate implements AccountDao {

    @Override
    public long count() {
        return jdbcTemplate.queryForLong("SELECT COUNT(*) FROM tb_account");
    }

}
